package com.sg.file.receive.api;

import com.sg.file.receive.api.dto.ByteFileReceiveRequest;
import com.sg.file.receive.api.dto.FileReceiveResponse;

import java.util.List;

/**
 * 文件接收服务
 * Created by asus on 2018/7/9.
 */
public interface IFileReceiveService {
    /**
     * 多文件持久化并保存记录
     * @param byteFileReceiveRequests 文件上传请求集合
     * @return
     */
    FileReceiveResponse receiveAndAdd(List<ByteFileReceiveRequest> byteFileReceiveRequests);
    /**
     * 文件持久化并保存记录
     * @param byteFileReceiveRequest 文件上传请求集合
     * @return
     */
    FileReceiveResponse receiveAndAdd(ByteFileReceiveRequest byteFileReceiveRequest);
    /**
     * 文件持久化并更新记录
     * @param byteFileReceiveRequest 文件上传请求集合
     * @return
     */
    FileReceiveResponse receiveAndUpdate(ByteFileReceiveRequest byteFileReceiveRequest);
}
